package cn.edu.scau.cmi.wangjushen.composit.consistent;

import java.util.List;

public class Person implements Organization {
    private String name;
    public Person(String name) {
        this.name = name;
    }

    @Override
    public boolean addChild(Organization organization) {
        return false;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public List<Organization> getChilds() {
        return null;
    }

    @Override
    public String toString() {
        return "Person("+name+")";
    }

}
